//
//  ComposeTextView.swift
//  weibo
//
//  Created by 叶子韬韬 on 2017/5/7.
//  Copyright © 2017年 叶子韬韬. All rights reserved.
//

import UIKit

class ComposeTextView: UITextView {

    internal var placHolderLabel :UILabel = UILabel()
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
        setupUI()
    }
    
    

}
// MARK:- #注释>设置UI
extension ComposeTextView{
    internal func setupUI(){
        addSubview(placHolderLabel)
        
        placHolderLabel.snp.makeConstraints { (make) in
            make.top.equalTo(5)
            make.left.equalTo(8)
        }
        
        placHolderLabel.textColor = UIColor.lightGray
        placHolderLabel.font = font
        placHolderLabel.text = "分享新鲜事..."
        
        
        //设置内容的内边距
        textContainerInset = UIEdgeInsetsMake(5, 10, 0, 10)
        
    }
}
